<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
    <script>
        var arr = [1,2,3,4,5,6];
        var arr1 = [10,20,30];
        console.log(Math.max(...arr));
        console.log(...arr);

        console.log([...arr,...arr1]);
        
        
    </script>
</body>
</html>